package com.young.shop.service;

import com.github.pagehelper.PageInfo;
import com.young.domain.SysUser;
import com.young.req.AddUserReq;
import com.young.req.SysUserPageReq;
import java.util.List;

public interface SysUserService {

  /**
   * @Author kangyang
   * @Description 根据用户名查询用户信息
   * @Date 10:34 2021/5/12
   * @Param [username]
   * @return com.young.admin.SysUser
   **/
  SysUser getUserByUserName(String username);

  /**
   * @Author kangyang
   * @Description 分页查询管理员列表
   * @Date 17:17 2021/5/15
   * @Param [sysUserPageReq]
   * @return com.baomidou.mybatisplus.core.metadata.IPage<com.young.domain.SysUser>
   **/
  PageInfo<SysUser> getSysUserPage(SysUserPageReq sysUserPageReq);

  /**
   * @Author kangyang
   * @Description 根据用户Id获取用户信息
   * @Date 18:15 2021/5/15
   * @Param [userId]
   * @return com.young.domain.SysUser
   **/
  SysUser getUserByUserId(Long userId);

  /**
   * @Author kangyang
   * @Description 根据用户Id删除用户
   * @Date 18:48 2021/5/15
   * @Param []
   * @return java.lang.Boolean
   **/
  Boolean delectUserByUserIds(List<Long> userIds);

  /**
   * @Author kangyang
   * @Description 新增用户
   * @Date 0:56 2021/5/16
   * @Param [addUserReq]
   * @return java.lang.Boolean
   **/
  Boolean insertUser(AddUserReq addUserReq);

  /**
   * @Author kangyang
   * @Description 修改用户
   * @Date 1:38 2021/5/16
   * @Param [addUserReq]
   * @return java.lang.Boolean
   **/
  Boolean updateUser(AddUserReq addUserReq);
}
